#include "stdafx.h"
#include "CameraDlg.h"


CTestDialog::CTestDialog(void)
{

}

CTestDialog::~CTestDialog(void)
{
	if (m_hWnd)
		DestroyWindow();
}

LRESULT CTestDialog::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	bHandled = TRUE;
	return TRUE;
}

LRESULT CTestDialog::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	DestroyWindow();// send message to OnDestroy; Non Modal Dialog
	bHandled = TRUE;
	return TRUE;
}

LRESULT CTestDialog::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	PostQuitMessage(0);
	bHandled = TRUE;
	return TRUE;
}

LRESULT CTestDialog::OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	bHandled = TRUE;
	EndDialog(0); // send message to OnDestroy; Modal Dialog
	return 0;
}

LRESULT CTestDialog::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
	bHandled = TRUE;
	EndDialog(0);
	return 0;
}
